package ita.class1.group2.supermarket.administrator;

import ita.class1.group2.supermarket.administrator.service.UserService;
import ita.class1.group2.supermarket.common.annotation.Autowired;
import ita.class1.group2.supermarket.common.annotation.Component;
import ita.class1.group2.supermarket.common.annotation.RequestMapping;
import java.util.Map;

@Component
public class Hello {

    @Autowired
    private UserService userService;

    @RequestMapping("/hello/{id}/{name}")
    public String test(Map<String, String> params) {
        System.err.println(userService.findAll());
        return "Hello world";
    }

}
